function columns(vm) {
  const cols = [
    {
      title: '序号',
      key: 'rowIndex',
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '年度',
      align: 'center',
      dataIndex: 'year',
      key:'year'
    },
    {
      title: '季度',
      align: 'center',
      dataIndex: 'quarter',
      key:'quarter'
    },
    {
      title: '操作',
      dataIndex: 'action',
      width:200,
      align: 'center',
      slots: { title: 'actionName' },
      scopedSlots: {customRender: 'action'}
    }
  ]
  return cols
}

export default columns